package com.encon.projecttracker.server.servlet;

import javax.servlet.ServletException;

import org.apache.log4j.Logger;

import com.encon.projecttracker.server.services.DiscoveryService;

import java.util.List;

import javax.servlet.ServletException;

import org.apache.log4j.Logger;
import com.encon.projecttracker.rpc.Discovery;
import com.encon.projecttracker.rpc.exceptions.RpcException;
import com.encon.projecttracker.server.messages.Messages;

public class DiscoveryServlet extends AbstractServlet implements Discovery{
	 private static final long serialVersionUID = 1L;

     private transient DiscoveryService discoveryService;

     private transient Logger log = Logger.getLogger(DiscoveryServlet.class);

     public void init() throws ServletException {
             super.init();
             discoveryService = (DiscoveryService)applicationContext.getBean("discoveryService"); //$NON-NLS-1$
             if (discoveryService==null)
         throw new ServletException(Messages.getString("Servlet.DiscoveryServiceNotFound")); //$NON-NLS-1$
     }


}
